package com.jichangxiu.system.entity.dto.edit;

import com.jichangxiu.system.entity.bo.SysLogBo;
import com.jichangxiu.system.entity.po.SysLog;
import io.github.linpeilie.annotations.AutoMapper;
import io.github.linpeilie.annotations.AutoMappers;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * EditSysLog:
 *
 * @author JiChangXiu
 * @create 2024-06-28 13:44:26
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@Schema(description = "系统日志表")
@AutoMappers({
        @AutoMapper(target = SysLog.class, reverseConvertGenerate = false),
        @AutoMapper(target = SysLogBo.class, reverseConvertGenerate = false)
})
public class EditSysLog implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @Schema(description = "ID")
    private String id;

    /**
     * 编码
     */
    @Schema(description = "编码")
    private String no;

    /**
     * 业务类型
     */
    @Schema(description = "业务类型")
    private String type;

    /**
     * 请求地址
     */
    @Schema(description = "请求地址")
    private String action;

    /**
     * 请求方式
     */
    @Schema(description = "请求方式")
    private String method;

    /**
     * 请求模块
     */
    @Schema(description = "请求模块")
    private String module;

    /**
     * 处理方法
     */
    @Schema(description = "处理方法")
    private String handle;

    /**
     * 请求参数
     */
    @Schema(description = "请求参数")
    private String param;

    /**
     * 结果信息
     */
    @Schema(description = "结果信息")
    private String result;

    /**
     * 异常信息
     */
    @Schema(description = "异常信息")
    private String exception;

    /**
     * IP地址
     */
    @Schema(description = "IP地址")
    private String address;

    /**
     * IP定位
     */
    @Schema(description = "IP定位")
    private String location;

    /**
     * 浏览器
     */
    @Schema(description = "浏览器")
    private String browser;

    /**
     * 操作系统
     */
    @Schema(description = "操作系统")
    private String system;

    /**
     * 状态
     */
    @Schema(description = "状态")
    private Boolean status;

    /**
     * 耗时
     */
    @Schema(description = "耗时")
    private Long duration;

    /**
     * 用户ID
     */
    @Schema(description = "用户ID")
    private String userId;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String remark;

}